package cn.yunhe.model;

import java.util.Date;

/**
 * 
 * @author Administrator
 *
 */
public class House {

	private int houseid;
	private User user;
	private Type type;
	private Street street;

	private String title;
	private String content;
	private String pic;
	private float price;
	private Date pubdate;
	private float floorage;
	private String contact;
	public static final int pageCount = 5;

	public House() {
	}

	
	public House(User user, Type type, Street street, String title, String content, String pic, float price,
			Date pubdate, float floorage, String contact) {
		this.user = user;
		this.type = type;
		this.street = street;
		this.title = title;
		this.content = content;
		this.pic = pic;
		this.price = price;
		this.pubdate = pubdate;
		this.floorage = floorage;
		this.contact = contact;
	}


	public House(User user, Type type, Street street, String title, String content, String pic, float price,
			Date pubdate, float floorage) {
		this.user = user;
		this.type = type;
		this.street = street;
		this.title = title;
		this.content = content;
		this.pic = pic;
		this.price = price;
		this.pubdate = pubdate;
		this.floorage = floorage;
	}
	
	public House(int houseid, User user, Type type, Street street, String title, String content, String pic,
			float price, Date pubdate, float floorage, String contact) {
		super();
		this.houseid = houseid;
		this.user = user;
		this.type = type;
		this.street = street;
		this.title = title;
		this.content = content;
		this.pic = pic;
		this.price = price;
		this.pubdate = pubdate;
		this.floorage = floorage;
		this.contact = contact;
	}

	public int getHouseid() {
		return houseid;
	}

	public void setHouseid(int houseid) {
		this.houseid = houseid;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public Street getStreet() {
		return street;
	}

	public void setStreet(Street street) {
		this.street = street;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public Date getPubdate() {
		return pubdate;
	}

	public void setPubdate(Date pubdate) {
		this.pubdate = pubdate;
	}

	public float getFloorage() {
		return floorage;
	}

	public void setFloorage(float floorage) {
		this.floorage = floorage;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public static int getPagecount() {
		return pageCount;
	}

}
